home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutord.EXE
/
33.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-17
|
478b
|
32 lines
/*
There may be additional include files required depending
upon the compile product you are using. Typical compilers
include Microsoft C by Microsoft or Turbo C by Boland Int'l.
*/
#include <stdio.h>
main()
{
char new='\n';
int i=10, h;
printf("Hello");
newline(new);
h=count(i);
/* h is 100, i is still 10 */
printf("h=%d, i=%d",h,i);
}
newline(i)
char i;
{
printf("%c",i);
}
count(j)
int j;
{
while(j<100) j+=10;
return(j);
}